<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Socket.IO 测试页面</title>
</head>
<body>
    <h1>Socket.IO 加载测试</h1>
    <div id="status">正在测试...</div>
    <button onclick="testSocketIO()">测试 Socket.IO</button>
    
    <script>
        // 测试 Socket.IO 加载
        function testSocketIO() {
            const statusDiv = document.getElementById('status');
            statusDiv.textContent = '开始测试...';
            
            // 检查是否已经加载
            if (window.io) {
                statusDiv.textContent = '✅ Socket.IO 已加载: ' + typeof window.io;
                console.log('Socket.IO 状态:', window.io);
            } else {
                statusDiv.textContent = '❌ Socket.IO 未加载';
                console.log('Socket.IO 未找到');
            }
        }
        
        // 页面加载时自动测试
        window.addEventListener('load', testSocketIO);
    </script>
</body>
</html> 